<?php

$this->pageTitle = 'Location of publication';
$this->pageSummary = sprintf(
	'External information about publication location of \'%s\'.',
	$this->title
);

$this->navigationMenu()->addDefaultItems();
$this->actionBar()->addAction('Back to publication: '. $this->title, sprintf($this->baseUrl('/page/publication/%s/'), $this->title));
$this->actionBar()->addAction('Map plot of location', sprintf($this->baseUrl('/page/publication/map/%s/'), $this->title));

$this->navigation()->findById('title_index')->setLabel($this->title);
$this->navigation()->findById('title_index')->setParams(array('queryparam'=>$this->title));

if($this->dbpedia['title'] != ''){
	echo '<h3>The city it was published: '.$this->dbpedia['title'].'</h3>';
}

if($this->dbpedia['depic'] != ''){
	$headers = get_headers($this->dbpedia['depic'], 1);
	if($headers[0] != 'HTTP/1.0 404 Not Found'){
		echo '<img src="'.$this->dbpedia['depic'].'" width="400" class="img">';
		echo '<br/><em>'.$this->dbpedia['caption'].'</em><br/><br/>';
	}	
}
if($this->dbpedia['comment'] != ''){
	echo '<strong>More information:</strong> '.utf8_decode($this->dbpedia['comment']);
}
?>